<?php

declare(strict_types=1);

namespace app\index\controller;

use app\index\logic\Config as LogicConfig;

class Config
{
    /**
     * 根据配置键获取配置项
     */
    public function getValueByKey(string $key)
    {
        list($value, $note) =  LogicConfig::getValueBykey($key);
        return data(compact('value'), $note);
    }
}
